import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        name: "xxxx",
        userInfo: {
            id: null,
            username: null,
            nickname: null,
            deptId: null,
            sex: null,
            email: null,
            mobile: null,
            remark: null,
            createDate: null,
            updateDate: null,
            status: null
        }
    },
    mutations: {
        setUserInfo(state, userInfo) {
            state.userInfo = userInfo;
        }
    }

})